Skip to content

Commit ab73501

Browse files
committed
Remove obsolete option LIKE_SHOW_SUMMARY
This option was used to show/hide the like summary, but had no effect since 5.2.
1 parent a4e2e2e commit ab73501

7 files changed

Lines changed: 5 additions & 12 deletions

File tree

com.woltlab.wcf/option.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,13 +1322,6 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
13221322
<suffix>days</suffix>
13231323
</option>
13241324
<!-- /user.cleanup -->
1325-
<option name="like_show_summary">
1326-
<categoryname>message.general.likes</categoryname>
1327-
<optiontype>boolean</optiontype>
1328-
<defaultvalue>0</defaultvalue>
1329-
<options>module_like</options>
1330-
<hidden>1</hidden>
1331-
</option>
13321325
<option name="message_sidebar_enable_online_status">
13331326
<categoryname>message.sidebar</categoryname>
13341327
<optiontype>boolean</optiontype>
@@ -1634,5 +1627,6 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
16341627

16351628
<option name="attachment_image_autoscale_quality"/>
16361629
<option name="register_username_force_ascii"/>
1630+
<option name="like_show_summary"/>
16371631
</delete>
16381632
</data>

com.woltlab.wcf/templates/article.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
// permissions
272272
canReact: {if $__wcf->getUser()->userID}true{else}false{/if},
273273
canReactToOwnContent: false,
274-
canViewReactions: {if LIKE_SHOW_SUMMARY}true{else}false{/if},
275274
276275
// selectors
277276
containerSelector: '.article',

constants.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
\define('USER_CLEANUP_NOTIFICATION_LIFETIME', 31);
146146
\define('USER_CLEANUP_ACTIVITY_EVENT_LIFETIME', 60);
147147
\define('USER_CLEANUP_PROFILE_VISITOR_LIFETIME', 60);
148-
\define('LIKE_SHOW_SUMMARY', 1);
149148
\define('MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS', 1);
150149
\define('MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED', 1);
151150
\define('MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS', 0);

phpstan-ambient.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ parameters:
146146
- USER_CLEANUP_NOTIFICATION_LIFETIME
147147
- USER_CLEANUP_ACTIVITY_EVENT_LIFETIME
148148
- USER_CLEANUP_PROFILE_VISITOR_LIFETIME
149-
- LIKE_SHOW_SUMMARY
150149
- MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS
151150
- MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED
152151
- MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS

wcfsetup/install/files/lib/system/WCF.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ protected function defineLegacyOptions(): void
519519

520520
// The username character restriction is always set to 'suspicious' since version 6.3.
521521
\define('REGISTER_USERNAME_FORCE_ASCII', 2);
522+
523+
// The option to show/hide the like summary had no effect since version 5.2.
524+
// https://github.com/WoltLab/WCF/commit/f9996bef03c56e27b16bc536312186e1e34c0240
525+
\define('LIKE_SHOW_SUMMARY', 0);
522526
}
523527

524528
/**

wcfsetup/install/lang/de.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,6 @@ Sie erreichen das Fehlerprotokoll unter: {link controller='ExceptionLogView' isE
15411541
<item name="wcf.acp.option.user_cleanup_profile_visitor_lifetime.description"><![CDATA[Zeitraum nach dem Profil-Besucher automatisch verworfen werden.]]></item>
15421542
<item name="wcf.acp.option.category.message.general.likes"><![CDATA[Reaktionen]]></item>
15431543
<item name="wcf.acp.option.module_like"><![CDATA[Reaktionen]]></item>
1544-
<item name="wcf.acp.option.like_show_summary"><![CDATA[Zusammenfassung anzeigen]]></item>
15451544
<item name="wcf.acp.option.module_user_profile_wall"><![CDATA[Benutzerprofil-Pinnwand]]></item>
15461545
<item name="wcf.acp.option.category.message.sidebar"><![CDATA[Seitenleiste]]></item>
15471546
<item name="wcf.acp.option.message_sidebar_enable_online_status"><![CDATA[Online-Status der Autoren anzeigen]]></item>

wcfsetup/install/lang/en.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,6 @@ You can access the error log at: {link controller='ExceptionLogView' isEmail=tru
15191519
<item name="wcf.acp.option.user_cleanup_profile_visitor_lifetime.description"><![CDATA[Profile visitors will be removed after the following days.]]></item>
15201520
<item name="wcf.acp.option.category.message.general.likes"><![CDATA[Reactions]]></item>
15211521
<item name="wcf.acp.option.module_like"><![CDATA[Reactions]]></item>
1522-
<item name="wcf.acp.option.like_show_summary"><![CDATA[Display reaction summary]]></item>
15231522
<item name="wcf.acp.option.module_user_profile_wall"><![CDATA[User profile wall]]></item>
15241523
<item name="wcf.acp.option.category.message.sidebar"><![CDATA[Sidebar]]></item>
15251524
<item name="wcf.acp.option.message_sidebar_enable_online_status"><![CDATA[Display author’s online status]]></item>

0 commit comments

Comments
 (0)