summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-13 23:38:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit467b4dea57fb29ca2a925acdf503b209901c12f1 (patch)
tree027284e6457cd135eb2fe428097695d5e7b3a85f
parent7bde786c8c69004c5f5ae9cfe3357622779bcd21 (diff)
💄 News Item: fix appearance for shared items
- if the article has no author and is shared it's displayed as: "shared by ..." instead of "- shared by ..." Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--templates/part.content.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 86c6c8180..fef89965f 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -198,7 +198,9 @@
<img ng-if="Content.getFeed(item.feedId).faviconLink && !Content.isCompactView()" src="{{ ::Content.getFeed(item.feedId).faviconLink }}" alt="favicon">
</a>
</span>
- <span ng-if="item.sharedBy">- <?php p($l->t('shared by')) ?>
+ <span ng-if="item.sharedBy">
+ <span ng-if="item.author">-</span>
+ <?php p($l->t('shared by')) ?>
<a>{{ ::item.sharedBy }}</a>
</span>
</div>