[bug fix] discarded stories are dipalyed in user profile
-
Constant Pligger
[bug fix] discarded stories are dipalyed in user profile
Discarded stories are displayed in the user profile in the "shaken" view, which is all stories the user voted for (don't know why its called shaken...)
Here is the fix for that:
Open user.php and under function do_history():
replace:
$rows = $db->get_var("SELECT count(*) FROM links WHERE link_author=$user->id AND");
$links = $db->get_col("SELECT link_id FROM links WHERE link_author=$user->id AND ORDER BY link_date DESC LIMIT $offset,$page_size");
with:
$rows = $db->get_var("SELECT count(*) FROM links WHERE link_author=$user->id AND link_status !='discard'");
$links = $db->get_col("SELECT link_id FROM links WHERE link_author=$user->id AND link_status !='discard' ORDER BY link_date DESC LIMIT $offset,$page_size");
Similar Threads
-
By sirwanme in forum Questions & Comments
Replies: 6
Last Post: 04-14-2012, 04:38 PM
-
By gorteks in forum Questions & Comments
Replies: 2
Last Post: 10-02-2011, 10:59 AM
-
By buzzerman in forum Questions & Comments
Replies: 9
Last Post: 05-05-2011, 11:21 AM
-
By jegan in forum Questions & Comments
Replies: 0
Last Post: 12-18-2009, 11:20 PM
-
By gragland in forum Questions & Comments
Replies: 0
Last Post: 07-26-2006, 05:14 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules