Why:
* Temp accounts cannot thank other users, so do not add the "thank" link
in log entries.
What:
* Change condition to check if a user is not named, rather than if they
are anonymous
* Add an integration test to verify the behavior for anon, temp, and
named users
Bug: T375209
Change-Id: Idb772a3072a6dc8a9d052cebb306b558f49caf31