mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-16 00:50:47 +08:00
Revert "feat: add BaseUserAvatar and unify avatar usage"
This reverts commit efbb83924b.
This commit is contained in:
@@ -199,8 +199,6 @@ function createFetchNotifications() {
|
||||
arr.push({
|
||||
...n,
|
||||
src: n.comment.author.avatar,
|
||||
userId: n.comment.author.id,
|
||||
userName: n.comment.author.username,
|
||||
iconClick: () => {
|
||||
markNotificationRead(n.id)
|
||||
navigateTo(`/users/${n.comment.author.id}`, { replace: true })
|
||||
@@ -221,8 +219,6 @@ function createFetchNotifications() {
|
||||
arr.push({
|
||||
...n,
|
||||
src: n.fromUser ? n.fromUser.avatar : null,
|
||||
userId: n.fromUser ? n.fromUser.id : undefined,
|
||||
userName: n.fromUser ? n.fromUser.username : undefined,
|
||||
icon: n.fromUser ? undefined : iconMap[n.type],
|
||||
iconClick: () => {
|
||||
if (n.fromUser) {
|
||||
@@ -235,8 +231,6 @@ function createFetchNotifications() {
|
||||
arr.push({
|
||||
...n,
|
||||
src: n.fromUser ? n.fromUser.avatar : null,
|
||||
userId: n.fromUser ? n.fromUser.id : undefined,
|
||||
userName: n.fromUser ? n.fromUser.username : undefined,
|
||||
icon: n.fromUser ? undefined : iconMap[n.type],
|
||||
iconClick: () => {
|
||||
if (n.fromUser) {
|
||||
@@ -275,8 +269,6 @@ function createFetchNotifications() {
|
||||
arr.push({
|
||||
...n,
|
||||
src: n.comment.author.avatar,
|
||||
userId: n.comment.author.id,
|
||||
userName: n.comment.author.username,
|
||||
iconClick: () => {
|
||||
markNotificationRead(n.id)
|
||||
navigateTo(`/users/${n.comment.author.id}`, { replace: true })
|
||||
@@ -323,8 +315,6 @@ function createFetchNotifications() {
|
||||
arr.push({
|
||||
...n,
|
||||
src: n.fromUser ? n.fromUser.avatar : null,
|
||||
userId: n.fromUser ? n.fromUser.id : undefined,
|
||||
userName: n.fromUser ? n.fromUser.username : undefined,
|
||||
icon: n.fromUser ? undefined : iconMap[n.type],
|
||||
iconClick: () => {
|
||||
if (n.post) {
|
||||
|
||||
Reference in New Issue
Block a user