mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-07 00:20:08 +02:00
Fix patterns
This commit is contained in:
parent
d06f7b4cde
commit
e9b465d9f4
2 changed files with 2 additions and 5 deletions
|
@ -209,7 +209,7 @@ public class TimelineHelper {
|
||||||
if (filterKeyword.whole_word) {
|
if (filterKeyword.whole_word) {
|
||||||
p = Pattern.compile(sb + "(" + Pattern.quote(filterKeyword.keyword) + ")" + eb, Pattern.CASE_INSENSITIVE);
|
p = Pattern.compile(sb + "(" + Pattern.quote(filterKeyword.keyword) + ")" + eb, Pattern.CASE_INSENSITIVE);
|
||||||
} else {
|
} else {
|
||||||
p = Pattern.compile("#" + Pattern.quote(filterKeyword.keyword), Pattern.CASE_INSENSITIVE);
|
p = Pattern.compile("(" + Pattern.quote(filterKeyword.keyword) + ")", Pattern.CASE_INSENSITIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Notification notification : notifications) {
|
for (Notification notification : notifications) {
|
||||||
|
|
|
@ -53,10 +53,8 @@ import app.fedilab.android.client.entities.api.Statuses;
|
||||||
import app.fedilab.android.client.entities.api.Tag;
|
import app.fedilab.android.client.entities.api.Tag;
|
||||||
import app.fedilab.android.client.entities.api.Token;
|
import app.fedilab.android.client.entities.api.Token;
|
||||||
import app.fedilab.android.client.entities.app.StatusCache;
|
import app.fedilab.android.client.entities.app.StatusCache;
|
||||||
import app.fedilab.android.client.entities.app.Timeline;
|
|
||||||
import app.fedilab.android.helper.Helper;
|
import app.fedilab.android.helper.Helper;
|
||||||
import app.fedilab.android.helper.MastodonHelper;
|
import app.fedilab.android.helper.MastodonHelper;
|
||||||
import app.fedilab.android.helper.TimelineHelper;
|
|
||||||
import okhttp3.MultipartBody;
|
import okhttp3.MultipartBody;
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
import retrofit2.Call;
|
import retrofit2.Call;
|
||||||
|
@ -910,8 +908,7 @@ public class AccountsVM extends AndroidViewModel {
|
||||||
Response<List<Status>> bookmarksResponse = bookmarksCall.execute();
|
Response<List<Status>> bookmarksResponse = bookmarksCall.execute();
|
||||||
if (bookmarksResponse.isSuccessful()) {
|
if (bookmarksResponse.isSuccessful()) {
|
||||||
statusList = bookmarksResponse.body();
|
statusList = bookmarksResponse.body();
|
||||||
// TimelineHelper.filterStatus(getApplication().getApplicationContext(), statusList, Timeline.TimeLineEnum.PUBLIC);
|
statuses.statuses = statusList;
|
||||||
statuses.statuses = TimelineHelper.filterStatus(getApplication().getApplicationContext(), statusList, Timeline.TimeLineEnum.PUBLIC);
|
|
||||||
statuses.pagination = MastodonHelper.getPagination(bookmarksResponse.headers());
|
statuses.pagination = MastodonHelper.getPagination(bookmarksResponse.headers());
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue