https://bugzilla.wikimedia.org/show_bug.cgi?id=46690

--- Comment #2 from Ryan Kaldari <[email protected]> ---
There are 2 different ways we could solve this without spamming the database:

Client-side:
When the ajax request for the thanks action completes, store the rev_id in a
session cookie. When the history or diff page is loaded, have it check against
the rev_ids in the user's session, and set the links appropriately (either a
non-linking 'thanked' or a linked 'thank').

Server-side:
When the Thanks API completes the thank action store the rev_id in the user's
memcached store. In the insertThankLink hook, check the memcached store for
that rev_id and set the links appropriately.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to