Show
Ignore:
Timestamp:
08/23/10 22:36:53 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
ec0da3f87768820f9ca9e8065c7998e9d825bd4c
Parents:
22d9643ba8d951cde698749cf25dbe905e197a4f
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/23/10 22:36:53)
Message:

[http::markread,article] Prevent marking read after explicit unmarking

Fixes #70.

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • http/article.cc

    r563ece2 rd3efc81  
    9595                boost::shared_ptr<db::user> u = req->get_user(); 
    9696 
    97                 if (is_single && u) u->mark_read(art->msgid()); 
     97                if (is_single && u && req->get_query_param("markread") != "no") 
     98                        u->mark_read(art->msgid()); 
    9899                 
    99100                db::thread_node::ptr tn =