Permalink
Browse files

Restore posts on user page

Fix links from Facebook Page replies listing to user page
Closes #910
  • Loading branch information...
ginatrapani committed Aug 27, 2011
1 parent 564325e commit ad2624d99cd0446405e7d76a8fab3aceb19500cc
Showing with 3 additions and 3 deletions.
  1. +1 −1 webapp/_lib/view/_post.author_no_counts.tpl
  2. +2 −2 webapp/_lib/view/user.index.tpl
@@ -22,7 +22,7 @@ $unit (optional) If $show_distance='true', unit should be 'mi' or 'km' for miles
{if $post->network == 'twitter' && $username_link != 'internal'}
<a href="{$site_root_path}user/?u={$post->author_username|urlencode}&n={$post->network|urlencode}&i={$selected_instance_username}">{$post->author_username}</a>
{else}
- <a href="{$site_root_path}user/index.php?u={$post->author_username|urlencode}&n={$post->network|urlencode}">{$post->author_username}</a>
+ <a href="{$site_root_path}user/index.php?u={$post->author_username|urlencode}&n={if $post->network eq 'facebook page'}facebook{else}{$post->network|urlencode}{/if}">{$post->author_username}</a>
{/if}
{if ($post->author && $post->author->follower_count > 0)}
@@ -63,7 +63,7 @@
{if $mutual_friends}
<div class="clearfix">
<h2>Mutual friends</h2>
- <div class="grid_18 alpha omega">
+ <div class="grid_18 alpha omega">
{foreach from=$mutual_friends key=uid item=u name=foo}
<div class="avatar-container float-l mr_10 mb_10">
<a href="http://twitter.com/{$u.user_name}" title="{$u.user_name}"><img src="{$u.avatar}" class="avatar2"/><img src="{$site_root_path}plugins/{$u.network}/assets/img/favicon.ico" class="service-icon2"/></a>
@@ -77,7 +77,7 @@
<div class="clearfix">
<h2>Posts</h2>
{foreach from=$user_statuses key=tid item=t name=foo}
- {include file="_post.counts_no_author.tpl" t=$t}
+ {include file="_post.counts_no_author.tpl" post=$t}
{/foreach}
<div class="float-l">

0 comments on commit ad2624d

Please sign in to comment.