A free, self-hostable news aggregator…
Fix a bug related to sharing
Marien Fressinaud03db0b5d3c43
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtmlindex 32317d027..20b4b332c 100644--- a/app/views/helpers/index/normal/entry_bottom.phtml+++ b/app/views/helpers/index/normal/entry_bottom.phtml@@ -36,16 +36,16 @@<li class="item"><?phpif ($bottomline_sharing) {?><div class="dropdown">- <div id="dropdown-share-<?php echo $item->id();?>" class="dropdown-target"></div>- <a class="dropdown-toggle" href="#dropdown-share-<?php echo $item->id();?>">+ <div id="dropdown-share-<?php echo $this->entry->id();?>" class="dropdown-target"></div>+ <a class="dropdown-toggle" href="#dropdown-share-<?php echo $this->entry->id();?>"><?php echo _i('share'); ?><?php echo _t('index.share'); ?></a><ul class="dropdown-menu"><li class="dropdown-close"><a href="#close">❌</a></li><?php- $link = $item->link();- $title = $item->title() . ' · ' . $feed->name();+ $link = $this->entry->link();+ $title = $this->entry->title() . ' · ' . $this->feed->name();foreach (FreshRSS_Context::$user_conf->sharing as $share_options) {$share = FreshRSS_Share::get($share_options['type']);$share_options['link'] = $link;