projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tiny fixes: save a query for by:me, and count() is a method.
[zzz-floof.git]
/
floof
/
lib
/
tags.py
diff --git
a/floof/lib/tags.py
b/floof/lib/tags.py
index
d2adafc
..
134ba6f
100644
(file)
--- a/
floof/lib/tags.py
+++ b/
floof/lib/tags.py
@@
-98,7
+98,10
@@
def add_tags(art, tag_string, user):
# Do work!
if prefix:
- target_user = User.get_by(name=tag_text)
+ if tag_text == 'me':
+ target_user = c.user
+ else:
+ target_user = User.get_by(name=tag_text)
# Special tag; at the moment, just a relationship
if prefix == 'by':