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) {
|
sources(topic) {
|
||||||
const privateContext =
|
const privateContext =
|
||||||
this.siteSettings.login_required ||
|
this.siteSettings.login_required ||
|
||||||
topic.isPrivateMessage ||
|
(topic && topic.isPrivateMessage) ||
|
||||||
topic.invisible ||
|
(topic && topic.invisible) ||
|
||||||
this.privateCategory;
|
this.privateCategory;
|
||||||
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,8 +20,8 @@ export default Component.extend({
|
||||||
sources(topic) {
|
sources(topic) {
|
||||||
const privateContext =
|
const privateContext =
|
||||||
this.siteSettings.login_required ||
|
this.siteSettings.login_required ||
|
||||||
topic.isPrivateMessage ||
|
(topic && topic.isPrivateMessage) ||
|
||||||
topic.invisible ||
|
(topic && topic.invisible) ||
|
||||||
this.privateCategory;
|
this.privateCategory;
|
||||||
|
|
||||||
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
return Sharing.activeSources(this.siteSettings.share_links, privateContext);
|
||||||
|
|
Loading…
Reference in New Issue