File: 1001_microformats.patch

package info (click to toggle)
rust-indieweb 0.4.5-8
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,148 kB
  • sloc: makefile: 12; sh: 1
file content (28 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: use branch 0.15 of crate microformats
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-04-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/Cargo.toml
+++ b/library/Cargo.toml
@@ -20,7 +20,7 @@
 time = { version = "0.3", features = ["serde", "serde-well-known"] }
 futures = "0.3"
 http = { version = "1" }
-microformats = { version = "0" }
+microformats = { version= "0.15", features = ["http"], default-features = false }
 reqwest-middleware = { version = "0.3", optional = true }
 serde = { version = "1.0", features = ["derive"] }
 serde_json = "1.0"
--- a/library/src/standards/webmention/mod.rs
+++ b/library/src/standards/webmention/mod.rs
@@ -419,7 +419,7 @@
                 .collect::<Vec<_>>();
 
             if property_names.is_empty() {
-                doc.find_item_by_url(target.clone())
+                doc.find_item_by_url(&target.clone())
                     .or_else(|| {
                         if let Some(fragment) = target.fragment() {
                             doc.find_item_by_id(fragment)