2019-03-11 15:14:37 +01:00
|
|
|
public class Tootle.Views.Hashtag : Views.Timeline {
|
2018-06-20 17:50:42 +02:00
|
|
|
|
2020-05-29 14:19:35 +02:00
|
|
|
public Hashtag (string tag) {
|
2020-06-03 14:41:21 +02:00
|
|
|
Object (
|
2020-07-28 20:30:45 +02:00
|
|
|
url: @"/api/v1/timelines/tag/$tag",
|
|
|
|
label: tag
|
2020-06-03 14:41:21 +02:00
|
|
|
);
|
2018-06-20 17:50:42 +02:00
|
|
|
}
|
2020-05-29 14:19:35 +02:00
|
|
|
|
|
|
|
public override string? get_stream_url () {
|
2020-06-03 14:41:21 +02:00
|
|
|
var tag = url.substring (4);
|
2020-06-20 12:04:58 +02:00
|
|
|
return account != null ? @"$(account.instance)/api/v1/streaming/?stream=hashtag&tag=$tag&access_token=$(account.access_token)" : null;
|
2018-06-20 17:50:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|