FIX: bug with sharing when used outside a topic
Followup to ac76bfb
, fixes share buttons in topic lists (only used in themes or plugins)
This commit is contained in:
parent
2682da81ad
commit
52b864facf
|
@ -17,8 +17,8 @@ export default Component.extend({
|
|||
sources(topic) {
|
||||
const privateContext =
|
||||
this.siteSettings.login_required ||
|
||||
topic.isPrivateMessage ||
|
||||
topic.invisible ||
|
||||
(topic && topic.isPrivateMessage) ||
|
||||
(topic && topic.invisible) ||
|
||||
this.privateCategory;
|
||||
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
||||
},
|
||||
|
|
|
@ -20,8 +20,8 @@ export default Component.extend({
|
|||
sources(topic) {
|
||||
const privateContext =
|
||||
this.siteSettings.login_required ||
|
||||
topic.isPrivateMessage ||
|
||||
topic.invisible ||
|
||||
(topic && topic.isPrivateMessage) ||
|
||||
(topic && topic.invisible) ||
|
||||
this.privateCategory;
|
||||
|
||||
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
||||
|
|
Loading…
Reference in New Issue