gotify / server

A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
https://gotify.net
Other
11.49k stars 639 forks source link

Markdown URLs not rendering correctly. #725

Closed Nillth closed 2 weeks ago

Nillth commented 2 weeks ago

Can the issue be reproduced with the latest available release? y

Which one is the environment gotify server is running in?

services:
  changedetection:
    image: ghcr.io/dgtlmoon/changedetection.io
    container_name: changedetection
    hostname: changedetection
    volumes:
      - changedetection-data:/datastore
    labels:
      - "traefik.http.services.${SVCName}.loadbalancer.server.port=5000"
      # - "com.centurylinklabs.watchtower.enable=true"
    env_file:
      - .env
    environment:
      - WEBDRIVER_URL="http://browser-chrome:4444/wd/hub"
    networks:
      - traefik
      - default    
    extends:
      file: ../common-services-app.yml
      service: app
    restart: always
  browser-chrome:
    hostname: browser-chrome
    image: selenium/standalone-chrome-debug:3.141.59
    volumes:
        - /dev/shm:/dev/shm
    restart: unless-stopped
    networks:
      - default
networks:
  traefik:
    external: true
  default:
volumes:
  changedetection-data:

Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)

On which client do you experience problems? (Select as many as you can see)

What did you do?

Notification sent to server correctly.

What did you expect to see?

The markdown to be rendered correctly with a clickable URL

image

What did you see instead? (Include screenshots, android logcat/request dumps if possible)

In the Web App

image

vs the Android App which was sort of fixed but still not rendering correctly image

eternal-flame-AD commented 2 weeks ago

Did you set the content type correctly? https://gotify.net/docs/msgextras#contenttype

I tried this and on the web UI the link is correctly rendered.

gotify push --contentType text/markdown "This is a [test message](https://github.com/gotify/server) only."
Nillth commented 2 weeks ago

Thanks for the quick response, it looks as though I was missing the contentType in my requests.