Skip to content

Commit 0bda0c2

Browse files
committed
fixed issues with tag your friend
1 parent d095801 commit 0bda0c2

File tree

6 files changed

+457
-4
lines changed

6 files changed

+457
-4
lines changed

Dockerfile.alpine

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ADD yatcobot /build/yatcobot
1717

1818
RUN cd /build &&\
1919
python setup.py install
20-
20+
2121
VOLUME ["/yatcobot"]
2222

2323
WORKDIR /yatcobot

tests/fixtures/post_tag_friend.json

+231
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
{
2+
"created_at": "Sun Apr 01 00:24:20 +0000 2018",
3+
"id": 980239405519577088,
4+
"id_str": "980239405519577088",
5+
"full_text": "#Fortnite Skins #Giveaway \n\n\ud83d\udc30: RABBIT RAIDER \u2642\ufe0f\n\ud83d\udc30: BUNNY BRAWLER \u2640\ufe0f\n\u26cf\ufe0f: CARROT STICK \ud83e\udd55\n\nHow To Win: \n \n- Follow @VastGG\n- Tag Your Friends\n- Retweet This Post\n- Turn Notifications On\n\nEnds in 24hrs (Winner will be given currency to purchase V-Bucks for skins). https://t.co/KtzpyX6u62",
6+
"truncated": false,
7+
"display_text_range": [
8+
0,
9+
261
10+
],
11+
"entities": {
12+
"hashtags": [
13+
{
14+
"text": "Fortnite",
15+
"indices": [
16+
0,
17+
9
18+
]
19+
},
20+
{
21+
"text": "Giveaway",
22+
"indices": [
23+
16,
24+
25
25+
]
26+
}
27+
],
28+
"symbols": [],
29+
"user_mentions": [
30+
{
31+
"screen_name": "VastGG",
32+
"name": "Vast \ud83d\udd1c @PAXEast",
33+
"id": 851661253944766465,
34+
"id_str": "851661253944766465",
35+
"indices": [
36+
113,
37+
120
38+
]
39+
}
40+
],
41+
"urls": [],
42+
"media": [
43+
{
44+
"id": 980238917533224960,
45+
"id_str": "980238917533224960",
46+
"indices": [
47+
262,
48+
285
49+
],
50+
"media_url": "http://pbs.twimg.com/ext_tw_video_thumb/980238917533224960/pu/img/YoBPy7swze1hg-3F.jpg",
51+
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/980238917533224960/pu/img/YoBPy7swze1hg-3F.jpg",
52+
"url": "https://t.co/KtzpyX6u62",
53+
"display_url": "pic.twitter.com/KtzpyX6u62",
54+
"expanded_url": "https://twitter.com/VastGG/status/980239405519577088/video/1",
55+
"type": "photo",
56+
"sizes": {
57+
"thumb": {
58+
"w": 150,
59+
"h": 150,
60+
"resize": "crop"
61+
},
62+
"medium": {
63+
"w": 1200,
64+
"h": 675,
65+
"resize": "fit"
66+
},
67+
"small": {
68+
"w": 680,
69+
"h": 383,
70+
"resize": "fit"
71+
},
72+
"large": {
73+
"w": 1280,
74+
"h": 720,
75+
"resize": "fit"
76+
}
77+
}
78+
}
79+
]
80+
},
81+
"extended_entities": {
82+
"media": [
83+
{
84+
"id": 980238917533224960,
85+
"id_str": "980238917533224960",
86+
"indices": [
87+
262,
88+
285
89+
],
90+
"media_url": "http://pbs.twimg.com/ext_tw_video_thumb/980238917533224960/pu/img/YoBPy7swze1hg-3F.jpg",
91+
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/980238917533224960/pu/img/YoBPy7swze1hg-3F.jpg",
92+
"url": "https://t.co/KtzpyX6u62",
93+
"display_url": "pic.twitter.com/KtzpyX6u62",
94+
"expanded_url": "https://twitter.com/VastGG/status/980239405519577088/video/1",
95+
"type": "video",
96+
"sizes": {
97+
"thumb": {
98+
"w": 150,
99+
"h": 150,
100+
"resize": "crop"
101+
},
102+
"medium": {
103+
"w": 1200,
104+
"h": 675,
105+
"resize": "fit"
106+
},
107+
"small": {
108+
"w": 680,
109+
"h": 383,
110+
"resize": "fit"
111+
},
112+
"large": {
113+
"w": 1280,
114+
"h": 720,
115+
"resize": "fit"
116+
}
117+
},
118+
"video_info": {
119+
"aspect_ratio": [
120+
16,
121+
9
122+
],
123+
"duration_millis": 5080,
124+
"variants": [
125+
{
126+
"content_type": "application/x-mpegURL",
127+
"url": "https://video.twimg.com/ext_tw_video/980238917533224960/pu/pl/h-0EACjZ_fzJglvg.m3u8"
128+
},
129+
{
130+
"bitrate": 256000,
131+
"content_type": "video/mp4",
132+
"url": "https://video.twimg.com/ext_tw_video/980238917533224960/pu/vid/320x180/APjmbSj5DyI2MULy.mp4"
133+
},
134+
{
135+
"bitrate": 832000,
136+
"content_type": "video/mp4",
137+
"url": "https://video.twimg.com/ext_tw_video/980238917533224960/pu/vid/640x360/wZyIHHO6bDR7-dx5.mp4"
138+
},
139+
{
140+
"bitrate": 2176000,
141+
"content_type": "video/mp4",
142+
"url": "https://video.twimg.com/ext_tw_video/980238917533224960/pu/vid/1280x720/9xQ7Kh-XGm5lZ1R3.mp4"
143+
}
144+
]
145+
},
146+
"additional_media_info": {
147+
"monetizable": false
148+
}
149+
}
150+
]
151+
},
152+
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
153+
"in_reply_to_status_id": null,
154+
"in_reply_to_status_id_str": null,
155+
"in_reply_to_user_id": null,
156+
"in_reply_to_user_id_str": null,
157+
"in_reply_to_screen_name": null,
158+
"user": {
159+
"id": 851661253944766465,
160+
"id_str": "851661253944766465",
161+
"name": "Vast \ud83d\udd1c @PAXEast",
162+
"screen_name": "VastGG",
163+
"location": "United States",
164+
"description": "A marketing service providing growth strategies for brands within Esports and gaming. Partnered with @VBI. [email protected]",
165+
"url": "https://t.co/mQ7wiqlvlI",
166+
"entities": {
167+
"url": {
168+
"urls": [
169+
{
170+
"url": "https://t.co/mQ7wiqlvlI",
171+
"expanded_url": "http://vast.gg/",
172+
"display_url": "vast.gg",
173+
"indices": [
174+
0,
175+
23
176+
]
177+
}
178+
]
179+
},
180+
"description": {
181+
"urls": []
182+
}
183+
},
184+
"protected": false,
185+
"followers_count": 175806,
186+
"friends_count": 731,
187+
"listed_count": 47,
188+
"created_at": "Tue Apr 11 05:00:40 +0000 2017",
189+
"favourites_count": 1817,
190+
"utc_offset": null,
191+
"time_zone": null,
192+
"geo_enabled": false,
193+
"verified": false,
194+
"statuses_count": 617,
195+
"lang": "en",
196+
"contributors_enabled": false,
197+
"is_translator": false,
198+
"is_translation_enabled": false,
199+
"profile_background_color": "000000",
200+
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
201+
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
202+
"profile_background_tile": false,
203+
"profile_image_url": "http://pbs.twimg.com/profile_images/941092840460783616/ttOvuWQW_normal.jpg",
204+
"profile_image_url_https": "https://pbs.twimg.com/profile_images/941092840460783616/ttOvuWQW_normal.jpg",
205+
"profile_banner_url": "https://pbs.twimg.com/profile_banners/851661253944766465/1513207257",
206+
"profile_link_color": "000000",
207+
"profile_sidebar_border_color": "000000",
208+
"profile_sidebar_fill_color": "000000",
209+
"profile_text_color": "000000",
210+
"profile_use_background_image": false,
211+
"has_extended_profile": true,
212+
"default_profile": false,
213+
"default_profile_image": false,
214+
"following": true,
215+
"follow_request_sent": false,
216+
"notifications": false,
217+
"translator_type": "none"
218+
},
219+
"geo": null,
220+
"coordinates": null,
221+
"place": null,
222+
"contributors": null,
223+
"is_quote_status": false,
224+
"retweet_count": 872,
225+
"favorite_count": 531,
226+
"favorited": false,
227+
"retweeted": true,
228+
"possibly_sensitive": false,
229+
"possibly_sensitive_appealable": false,
230+
"lang": "en"
231+
}

0 commit comments

Comments
 (0)