Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Url preview endpoint #3437

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5845244
url preview test version
adnull Sep 29, 2024
46473c1
implemented waiting for free thumb generator
adnull Sep 29, 2024
6c8158b
added storing response as file cache
adnull Sep 30, 2024
625bc3d
fixed dummy user id
adnull Sep 30, 2024
016500b
fixed some linter errors
adnull Sep 30, 2024
dd3fd3d
fix complexity
adnull Sep 30, 2024
d8d6df3
url blacklist
adnull Sep 30, 2024
677fbb2
refactoring
adnull Oct 1, 2024
ff87ec3
made handler sy-test compatible
adnull Oct 1, 2024
c860640
linters
adnull Oct 1, 2024
ea0b25b
lint fix
adnull Oct 1, 2024
4232fa3
tests tentative
adnull Oct 8, 2024
0224d94
url_preview tests
adnull Oct 9, 2024
7fff56c
fix linter errors
adnull Oct 9, 2024
f58da42
fixed race conditions
adnull Oct 9, 2024
6bfe946
Update the copyright headers in all files
sandhose Oct 17, 2024
984b024
Update license file
sandhose Oct 17, 2024
b85bc28
Update license in Docker image annotations
sandhose Oct 17, 2024
8b769d2
Fixup missed license headers
sandhose Oct 17, 2024
6d327dc
fixup! Update license in Docker image annotations
sandhose Oct 17, 2024
6e6c3de
Rename the go package
sandhose Oct 17, 2024
891950f
Replace references to the repository
sandhose Oct 17, 2024
9118617
Add commercial license
sandhose Oct 18, 2024
075b236
Update the license headers to mention the commercial license
sandhose Oct 18, 2024
da92fd3
Update the CODEOWNERS to use @element-hq/dendrite-core
sandhose Oct 18, 2024
3ca9dae
Fix missed matrix-org bits, run go mod tidy
S7evinK Nov 14, 2024
11b4874
Fix linting
S7evinK Nov 14, 2024
7cc7ebb
Update GHCR_NAME space to element-hq
S7evinK Nov 14, 2024
f9cf05c
Merge remote-tracking branch 'hq-origin/main' into url-preview
adnull Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @matrix-org/dendrite-core
* @element-hq/dendrite-core
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ about: Suggest an idea for this project

<!--
Please do not open feature requests for missing parts of the Matrix specification.
We are tracking those features under https://github.com/matrix-org/dendrite/issues?q=is%3Aissue+is%3Aopen+label%3Aare-we-synapse-yet
We are tracking those features under https://github.com/element-hq/dendrite/issues?q=is%3Aissue+is%3Aopen+label%3Aare-we-synapse-yet
-->

**Description:**
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/dendrite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
branches:
- main
paths:
- '**.go' # only execute on changes to go files
- 'go.sum' # or dependency updates
- '.github/workflows/**' # or workflow changes
- "**.go" # only execute on changes to go files
- "go.sum" # or dependency updates
- ".github/workflows/**" # or workflow changes
pull_request:
paths:
- '**.go'
- 'go.sum' # or dependency updates
- '.github/workflows/**'
- "**.go"
- "go.sum" # or dependency updates
- ".github/workflows/**"
release:
types: [published]
workflow_dispatch:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true

- name: Install Node
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- uses: actions/cache@v4
# manually set up caches, as they otherwise clash with different steps using setup-go with cache=true
with:
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- uses: actions/cache@v4
with:
path: |
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- uses: actions/cache@v4
with:
path: |
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- name: Set up gotestfmt
uses: gotesttools/gotestfmt-action@v2
with:
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true
- uses: actions/cache@v4
with:
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true
- uses: actions/cache@v4
with:
Expand Down Expand Up @@ -474,7 +474,7 @@ jobs:
upgrade_test_direct,
sytest,
complement,
integration
integration,
]
runs-on: ubuntu-latest
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
Expand All @@ -490,8 +490,8 @@ jobs:
packages: write
contents: read
security-events: write # To upload Trivy sarif files
if: github.repository == 'matrix-org/dendrite' && github.ref_name == 'main'
if: github.repository == 'element-hq/dendrite' && github.ref_name == 'main'
needs: [integration-tests-done]
uses: matrix-org/dendrite/.github/workflows/docker.yml@main
uses: element-hq/dendrite/.github/workflows/docker.yml@main
secrets:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
env:
DOCKER_NAMESPACE: matrixdotorg
DOCKER_HUB_USER: dendritegithub
GHCR_NAMESPACE: matrix-org
GHCR_NAMESPACE: element-hq
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7

jobs:
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ FROM alpine:latest
RUN apk --update --no-cache add curl
LABEL org.opencontainers.image.title="Dendrite"
LABEL org.opencontainers.image.description="Next-generation Matrix homeserver written in Go"
LABEL org.opencontainers.image.source="https://github.com/matrix-org/dendrite"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.documentation="https://matrix-org.github.io/dendrite/"
LABEL org.opencontainers.image.vendor="The Matrix.org Foundation C.I.C."
LABEL org.opencontainers.image.source="https://github.com/element-hq/dendrite"
LABEL org.opencontainers.image.licenses="AGPL-3.0-only OR LicenseRef-Element-Commercial"
LABEL org.opencontainers.image.documentation="https://element-hq.github.io/dendrite/"
LABEL org.opencontainers.image.vendor="New Vector Ltd."

COPY --from=build /out/create-account /usr/bin/create-account
COPY --from=build /out/generate-config /usr/bin/generate-config
Expand All @@ -45,4 +45,3 @@ WORKDIR /etc/dendrite

ENTRYPOINT ["/usr/bin/dendrite"]
EXPOSE 8008 8448

Loading