-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helper): Fix missing timestamp on safari (close #12)
- Loading branch information
1 parent
9970154
commit e3fc0e1
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"authors": [ | ||
"Jonathan Hornung <[email protected]>" | ||
], | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "Twitter plugin for apiNG", | ||
"main": "dist/aping-plugin-codebird.min.js", | ||
"moduleType": [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<div class="aping-design-sample"> | ||
<div> | ||
<div ng-repeat="item in results"> | ||
<pre>{{item | json}}</pre> | ||
</div> | ||
<div ng-repeat="item in results"> | ||
<pre>{{item | json}}</pre> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
@name: aping-plugin-codebird | ||
@version: 0.7.6 (24-01-2016) | ||
@version: 0.7.7 (24-01-2016) | ||
@author: Jonathan Hornung <[email protected]> | ||
@url: https://github.com/JohnnyTheTank/apiNG-plugin-codebird | ||
@license: MIT | ||
|
@@ -251,13 +251,15 @@ angular.module("jtt_aping_codebird") | |
blog_id: _item.user.id_str, | ||
blog_link: this.getThisPlattformLink() + _item.user.screen_name + "/", | ||
intern_id: _item.id_str, | ||
timestamp: new Date(Date.parse(_item.created_at.replace(/( \+)/, ' UTC$1'))).getTime(), | ||
timestamp: new Date(Date.parse(_item.created_at.replace(/^\w+ (\w+) (\d+) ([\d:]+) \+0000 (\d+)$/, "$1 $2 $4 $3 UTC"))).getTime(), | ||
text: _item.text, | ||
shares: _item.retweet_count, | ||
likes: _item.favorite_count, | ||
}); | ||
|
||
socialObject.date_time = new Date(socialObject.timestamp); | ||
if(socialObject.timestamp) { | ||
socialObject.date_time = new Date(socialObject.timestamp); | ||
} | ||
|
||
if (_item.entities && _item.entities.media && _item.entities.media.length > 0) { | ||
socialObject.source = _item.entities.media; | ||
|
@@ -286,13 +288,15 @@ angular.module("jtt_aping_codebird") | |
blog_id: _item.user.id_str, | ||
blog_link: this.getThisPlattformLink() + _item.user.screen_name + "/", | ||
intern_id: _item.id_str, | ||
timestamp: new Date(Date.parse(_item.created_at.replace(/( \+)/, ' UTC$1'))).getTime(), | ||
timestamp: new Date(Date.parse(_item.created_at.replace(/^\w+ (\w+) (\d+) ([\d:]+) \+0000 (\d+)$/, "$1 $2 $4 $3 UTC"))).getTime(), | ||
text: _item.text, | ||
shares: _item.retweet_count, | ||
likes: _item.favorite_count, | ||
}); | ||
|
||
imageObject.date_time = new Date(imageObject.timestamp); | ||
if(imageObject.timestamp) { | ||
imageObject.date_time = new Date(imageObject.timestamp); | ||
} | ||
|
||
if (_item.entities && _item.entities.media && _item.entities.media.length > 0) { | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters