mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding IFTTT meta data to new stories.
This commit is contained in:
parent
3cebe4024a
commit
4df5fc78df
1 changed files with 12 additions and 0 deletions
|
@ -415,6 +415,10 @@ def api_unread_story(request, unread_score=None):
|
|||
"story_author": story['story_authors'],
|
||||
"story_date": story['story_date'],
|
||||
"story_score": score,
|
||||
"ifttt": {
|
||||
"id": story['story_hash'],
|
||||
"timestamp": story['story_date'].strftime("%f")
|
||||
},
|
||||
})
|
||||
|
||||
return {"data": entries}
|
||||
|
@ -447,6 +451,10 @@ def api_saved_story(request):
|
|||
"story_author": story['story_authors'],
|
||||
"story_date": story['story_date'],
|
||||
"saved_date": story['starred_date'],
|
||||
"ifttt": {
|
||||
"id": story['story_hash'],
|
||||
"timestamp": story['story_date'].strftime("%f")
|
||||
},
|
||||
})
|
||||
|
||||
return {"data": entries}
|
||||
|
@ -508,6 +516,10 @@ def api_shared_story(request):
|
|||
"story_author": story['story_authors'],
|
||||
"story_date": story['story_date'],
|
||||
"story_score": score,
|
||||
"ifttt": {
|
||||
"id": story['story_hash'],
|
||||
"timestamp": story['story_date'].strftime("%f")
|
||||
},
|
||||
})
|
||||
|
||||
return {"data": entries}
|
||||
|
|
Loading…
Add table
Reference in a new issue