Format html

This commit is contained in:
Matthieu 2022-02-01 13:54:56 +01:00
parent 0affdb1f06
commit 94e431d93f
1 changed files with 2 additions and 1 deletions

View File

@ -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)