allow adding to user or user:Public
This commit is contained in:
parent
a576de8a82
commit
820190d9e6
1 changed files with 4 additions and 2 deletions
|
@ -309,10 +309,12 @@ def addListItems(data):
|
|||
i = Item.get(item_id)
|
||||
i.queue_download()
|
||||
i.update()
|
||||
elif data['list'] and (data['list'].startswith(':') or data['list'].endswith(':Public')):
|
||||
elif data['list'] and (data['list'].startswith(':') or
|
||||
data['list'].endswith(':Public') or
|
||||
data['list'].enswtih(':')):
|
||||
l = models.List.get_or_create(data['list'])
|
||||
if l:
|
||||
if l.name == 'Public' and l.user_id != settings.USER_ID:
|
||||
if l.name in ('Public', '') and l.user_id != settings.USER_ID:
|
||||
state.tasks.queue('upload', {
|
||||
'user': l.user_id,
|
||||
'items': data['items']
|
||||
|
|
Loading…
Reference in a new issue