mirror of
https://gitlab.shinice.net/pixeldroid/PixelDroid
synced 2025-01-11 14:44:02 +01:00
Format html
This commit is contained in:
parent
0affdb1f06
commit
94e431d93f
@ -15,6 +15,7 @@ import androidx.work.WorkerParameters
|
||||
import org.pixeldroid.app.MainActivity
|
||||
import org.pixeldroid.app.R
|
||||
import org.pixeldroid.app.posts.PostActivity
|
||||
import org.pixeldroid.app.posts.fromHtml
|
||||
import org.pixeldroid.app.utils.PixelDroidApplication
|
||||
import org.pixeldroid.app.utils.api.PixelfedAPI.Companion.apiForUser
|
||||
import org.pixeldroid.app.utils.api.objects.Notification
|
||||
@ -166,7 +167,7 @@ class NotificationsWorker(
|
||||
.setAutoCancel(true)
|
||||
|
||||
if (notification.type == mention || notification.type == comment || notification.type == poll){
|
||||
builder.setContentText(notification.status?.content)
|
||||
builder.setContentText(notification.status?.content?.let { fromHtml(it) })
|
||||
}
|
||||
|
||||
builder.setGroup(uniqueUserId)
|
||||
|
Loading…
Reference in New Issue
Block a user